class StartScene extends Scene {
    constructor(dir) {
        super(dir)
        log('call startScene')
        //打砖块
        // var s = new GameScene(dir)
        // dir.registerAction('k', function () {
        //     dir.replaceScene(s)
        // })
        this.title = new Label(dir, '按 K 开始游戏 ,进入游戏按 F 射击 哈哈 ', 50, 200)
        this.addNode(this.title)
        //动画测试
        this.player=new Animation(dir)
        this.addNode(this.player)
        this.ss=5
        self=this
        dir.registerAction('d',function(state){
            self.player.move(self.ss,state)
        })
        dir.registerAction('a',function(state){
            self.player.move(-self.ss,state)
        })
    }

}
